<?php
    class Admincp_Form_ValidateContact
    {
        public function validName($name)
        {
            $validate = new Zend_Validate_StringLength(1, 50);
            if($validate->isValid($name))
                return true;
            else
                return false;
        }
        
        public function validPhone($phone)
        {
            $validate = new Zend_Validate_StringLength(1, 20);
            if($validate->isValid($phone))
                return true;
            else
                return false;
        }
        
        public function validYahoo($yahoo)
        {
            $validate = new Zend_Validate_StringLength(0, 50);
            if($validate->isValid($yahoo))
                return true;
            else
                return false;
        }
    }
